package com.atguigu.day05;

public class Test05 {
    public static void main(String[] args) {
        int[] arr = new int[]{95, 92, 75, 56, 98, 71, 80, 58, 91, 91};
        int sum = 0;
        for (int each : arr)
            sum += each;
        double evarge = sum / arr.length;
        int count = 0;
        for (int each : arr)
            if (each > evarge)
                count++;
        System.out.println(sum);
        System.out.println(evarge);
        System.out.println("高于平均分:" + evarge + "的个数有" + count + "个");
    }
}
